package com.mock.finalTest.service;

import com.mock.finalTest.dao.UserDao;
import com.mock.finalTest.model.User;

/**
 * @Descripton 用户接口类
 * @Author liutianlong
 * @Date 2022/4/25 Version 1.0
 **/
public class UserService {

    private UserDao userDao;

    public UserService(UserDao userDao) {
        this.userDao = userDao;
    }

    public int queryCount() {
        return userDao.queryCount();
    }

    public void saveUser(User user) {
        userDao.saveUser(user);
    }

    public String getUserName(String userId) {
        return userDao.getUserName(userId);
    }
}
